<?php
error_reporting(E_ALL);

new weather();


class weather{


	function __construct(){
		$this->getWeather(1,1);
	}
	
	function getWeather($lat, $long){
		$lat = '59.88834';
		$long = '10.52205';
		$url = 'http://api.yr.no/weatherapi/locationforecast/1.5/?lat='.$lat.';lon='.$long;

		$document = new DOMDocument();
		$document->load($url);
		echo $document->saveXML();

		



	}
}

?>